<template>
  <div class="mask">
    <div class="container">
      <div class="header">
        <p><strong>就诊记录详情</strong></p>
        <span class="btn" @click="sayDisplay">X</span>
      </div>
      <div>
        <p><strong>就诊日期：</strong>{{ date }}</p>
        <p><strong>医生姓名：</strong>{{ userName }}</p>
        <p><strong>诊断结果：</strong>{{ symptom }}</p>
        <p><strong>处方信息：</strong>{{ healthy }}</p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ['date', 'userName', 'symptom', 'healthy'],
  methods: {
    sayDisplay() {
      this.$emit('sayDisplay')
    },
  },
}
</script>
<style scoped>
.mask {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background-color: #fff;
  border-radius: 5px;
  padding: 10px;
  max-width: 500px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn {
  cursor: pointer;
}
</style>
